<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>指定多个回调函数的执行情况</title>
</head>
<body>
<script>
    let promise = new Promise((resolve, reject) => {
        resolve('ok')
        // reject('err')
        // throw '异常'
    })
    promise.then(value => {
        console.log(value)
    }).catch(reason => {
        console.log(reason)
    })
    promise.then(value => {
        console.log(value)
    }).catch(reason => {
        console.log(reason)
    })
</script>
</body>
</html>